﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AdministradorForm
{
    public partial class ObtenerTecnicoForm : PlantillaForm
    {
        private int nroEmp;
        public int NroEmp
        {
            get { return nroEmp; }
        }

        public ObtenerTecnicoForm()
        {
            InitializeComponent();
            ServiceReferenceAdmin.Service1SoapClient srv = new AdministradorForm.ServiceReferenceAdmin.Service1SoapClient();
            dataGridView1.DataSource = srv.ListarTecnicos();
        }

        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            nroEmp = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
            Close();
        }
    }
}
